﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Sample
{
	public partial class TreeView : System.Web.UI.Page
	{
		protected void sampleTreeView_TreeNodeCollapsed(object sender, TreeNodeEventArgs e)
		{
			sampleLabel.Text = e.Node.Text + " was collapsed.";
		}

		protected void sampleTreeView_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
		{
			sampleLabel.Text = e.Node.Text + " was expanded.";
		}

		protected void sampleTreeView_SelectedNodeChanged(object sender, EventArgs e)
		{
			if (sampleTreeView.SelectedNode != null)
				sampleLabel.Text = sampleTreeView.SelectedNode.Text + " was selected.";
		}
	}
}
